package com.example.demo.config.mybatis.plugin;

import com.example.demo.service.UserService;
import org.apache.ibatis.plugin.*;
import java.util.Properties;

@Intercepts({@Signature(type = UserService.class,method = "findById",args = {Integer.class})})
public class ServiceInterceptor1 implements Interceptor {
    @Override
    public Object intercept(Invocation invocation) throws Throwable {
        return invocation.proceed();
    }

    @Override
    public Object plugin(Object o) {
        return Plugin.wrap(o,this);
    }

    @Override
    public void setProperties(Properties properties) {

    }
}
